package com.ruoyi.logisticscourier.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.logisticscourier.mapper.LogisticscourierMapper;
import com.ruoyi.logisticscourier.domain.Logisticscourier;
import com.ruoyi.logisticscourier.service.ILogisticscourierService;

/**
 * 物流地址Service业务层处理
 * 
 * @author sqlstudent
 * @date 2025-06-20
 */
@Service
public class LogisticscourierServiceImpl implements ILogisticscourierService 
{
    @Autowired
    private LogisticscourierMapper logisticscourierMapper;

    /**
     * 查询物流地址
     * 
     * @param courierId 物流地址主键
     * @return 物流地址
     */
    @Override
    public Logisticscourier selectLogisticscourierByCourierId(String courierId)
    {
        return logisticscourierMapper.selectLogisticscourierByCourierId(courierId);
    }

    /**
     * 查询物流地址列表
     * 
     * @param logisticscourier 物流地址
     * @return 物流地址
     */
    @Override
    public List<Logisticscourier> selectLogisticscourierList(Logisticscourier logisticscourier)
    {
        return logisticscourierMapper.selectLogisticscourierList(logisticscourier);
    }

    /**
     * 新增物流地址
     * 
     * @param logisticscourier 物流地址
     * @return 结果
     */
    @Override
    public int insertLogisticscourier(Logisticscourier logisticscourier)
    {
        return logisticscourierMapper.insertLogisticscourier(logisticscourier);
    }

    /**
     * 修改物流地址
     * 
     * @param logisticscourier 物流地址
     * @return 结果
     */
    @Override
    public int updateLogisticscourier(Logisticscourier logisticscourier)
    {
        return logisticscourierMapper.updateLogisticscourier(logisticscourier);
    }

    /**
     * 批量删除物流地址
     * 
     * @param courierIds 需要删除的物流地址主键
     * @return 结果
     */
    @Override
    public int deleteLogisticscourierByCourierIds(String[] courierIds)
    {
        return logisticscourierMapper.deleteLogisticscourierByCourierIds(courierIds);
    }

    /**
     * 删除物流地址信息
     * 
     * @param courierId 物流地址主键
     * @return 结果
     */
    @Override
    public int deleteLogisticscourierByCourierId(String courierId)
    {
        return logisticscourierMapper.deleteLogisticscourierByCourierId(courierId);
    }
}
